package com.futao.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.annotations.ApiIgnore;

/**
 * @author futao
 * Created on 18-6-5-上午10:05.
 * 要在SpringBoot启动类的包下面才能正常启动
 * <p>
 * RestController  能够响应http请求
 * 返回json数据
 */
@RestController
@ApiIgnore
public class HelloController {
    @RequestMapping("/hello")
    public String index() throws Exception {
        throw new Exception();
    }
}
